import request from '@/utils/request'

//场地列表
export function officePlacelists(params?: any) {
    return request.get({ url: '/office.office_place/lists', params })
}

// 添加场地
export function officePlaceAdd(params: any) {
    return request.post({ url: '/office.office_place/add', params })
}

// 编辑场地
export function officePlaceEdit(params: any) {
    return request.post({ url: '/office.office_place/edit', params })
}


// 删除场地
export function officePlaceDelete(params: any) {
    return request.post({ url: '/office.office_place/delete', params })
}


// 场地详情
export function officePlaceDetail(params: any) {
    return request.get({ url: '/office.office_place/detail', params })
}


// 设置是否启用
export function officePlaceStatus(params: any) {
    return request.post({ url: '/office.office_place/updateStatus', params })
}

//获取IM联系人员列表
export function officePlaceImServiceList(params?: any) {
    return request.post({ url: '/office.office_place/imServiceList', params })
}


export function  officePlaceListNoPage(params?: any) {
    return request.get({ url: '/office.office_place/list', params })
}

// 添加场地
export function officeAdd(params: any) {
    return request.post({ url: '/office.office_place/add', params })
}
// 保存周边信息
export function saveSurroundings(params: any) {
    return request.post({ url: '/office.office_place/saveSurroundings', params })
}
// 保存概况信息
export function saveInfos(params: any) {
    return request.post({ url: '/office.office_place/saveInfos', params })
}
// 删除周边信息
export function delSurroundings(params: any) {
    return request.post({ url: '/office.office_place/delSurroundings', params })
}
// 工位首页-获取搜索项
export function  seatSeach(params?: any) {
    return request.get({ url: '/seat.seatOrder/index', params })
}
// 工位信息
export function  seatList(params?: any) {
    return request.get({ url: '/seat.seatOrder/seatList', params })
}